<template>
                <van-nav-bar

  left-text="返回"
 title=""
  left-arrow
  @click-left="onClickLeft"
  @click-right="onClickRight"
  safe-area-inset-top
/>
</template>

<script>
import Vue from 'vue';
import { NavBar , Toast} from 'vant';
Vue.use( Toast);
Vue.use(NavBar);
export default {
      data() {
          return {
              
          }
      },

  methods: {
    onClickLeft() {
      Toast('我的淘宝');
        this.$router.push("/center");
    },
    onClickRight() {
      Toast('按钮');
    },
  

}}
</script>

<style>
 .van-nav-bar .van-icon {
        color: #FF5000;
      }
      .van-nav-bar__text  {
           color: #FF5000;
          }
        
</style>